package com.dabaozhan.modules.wx_app.enums;

public enum ResponseCodeEnum {
        ResponseCode_100("处理成功",100),
        ResponseCode_101("请求参数异常",101),
        ResponseCode_102("新增失败",102),
        ResponseCode_104("请传入正确的毛重，皮重，净重",104),
        ResponseCode_105("该电话已经添加过供应商用户",105),
        ResponseCode_106("删除失败",106),
        ResponseCode_107("修改失败",107),
        ResponseCode_108("已经存在",108),
        ResponseCode_109("该账号异常,手机号为空",109),
        ResponseCode_110("不属于该平台用户",110),
        ResponseCode_111("该账号异常,姓名为空",111),

        ResponseCode_201("验证码错误",201),
        ResponseCode_202("手机号不匹配",202),
        ResponseCode_203("验证码不存在",203),
        ResponseCode_204("今日验证码次数已超过",204),
        ResponseCode_205("手机号已存在,请重新输入",205),
        ResponseCode_206("手机号不存在,请注册",206),
        ResponseCode_207("信息错误",207),
        ResponseCode_208("登录密码错误",208),

        ResponseCode_301("营业执照不清晰，请重新上传",301),
        ResponseCode_302("请上传营业执照",302),
        ResponseCode_303("身份证不清晰，请重新上传",303),

        ResponseCode_401("银行卡号错误",401),
        ResponseCode_402("未绑定银行卡",402),

        ResponseCode_501("支付密码错误",501),
        ResponseCode_502("未设置支付",502),

        ResponseCode_601("该品类下有订单数据，不能删除",601),

        ResponseCode_400("暂无数据",400),
        ResponseCode_500("系统异常",500),
        ResponseCode_700("新增成功",700),
        ResponseCode_701("修改成功",701),
        ResponseCode_702("删除成功",702),

    ;

	/**
     * 状态码
     */
    private int code;
    /**
     * 状态码描述
     */
    private String description;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private ResponseCodeEnum(String description, int code){
        this.description = description;
        this.code = code;
    }
}

